/**
 * @program: pettyloan
 * @ClassName OverdueServiceImpl
 * @author: 汪江
 * @create: 2022-12-12 14:31
 **/
package com.wn.pettyloan.service.impl;

import com.wn.pettyloan.dto.PayDto;
import com.wn.pettyloan.entity.Echarts;
import com.wn.pettyloan.entity.Overdue;
import com.wn.pettyloan.mapper.OverdueMapper;
import com.wn.pettyloan.service.OverdueService;



import com.wn.pettyloan.vo.OverdueVo2;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OverdueServiceImpl implements OverdueService {
    @Resource
    private OverdueMapper overdueMapper;


    @Override
    public Overdue selectOne(Long overdueId) {
        return overdueMapper.selectOne(overdueId);
    }


    @Override
    public List<Echarts> seleChart() {
        return overdueMapper.seleChart();
    }

    @Override
    public List<OverdueVo2> empOverdue() {
        return overdueMapper.empOverdue();
    }

    @Override
    public List<Overdue> selOverDueByUserId(Long userId) {
        return overdueMapper.selOverDueByUserId(userId);
    }

    @Override
    public List<Overdue> selAllOverdue() {
        return overdueMapper.selAllOverdue();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return overdueMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Overdue record) {
        return overdueMapper.insert(record);
    }

    @Override
    public int insertSelective(Overdue record) {
        return overdueMapper.insertSelective(record);
    }

    @Override
    public Overdue selectByPrimaryKey(Long id) {
        return overdueMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Overdue record) {
        return overdueMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Overdue record) {
        return overdueMapper.updateByPrimaryKey(record);
    }
}
